<?php

include(dirname(__FILE__).'/../../bootstrap/functional.php');

$browser = new sfTestFunctional(new sfBrowser());

$browser->
  get('/advert/new')->

  with('request')->begin()->
    isParameter('module', 'advert')->
    isParameter('action', 'new')->
  end()->

  with('response')->begin()->
    isStatusCode(200)->
  end()
;

$browser->
  get('/advert/edit')->

  with('request')->begin()->
    isParameter('module', 'advert')->
    isParameter('action', 'edit')->
	isParameter('idadverts', '1')->
  end()->

  with('response')->begin()->
    isStatusCode(200)->
  end()
;